package com.zsy.springcloud.controller;

import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Log4j2
@RestController
public class AccountController {

    @RequestMapping(value = "/getAccount", method = RequestMethod.GET)
    public Map<String,Object> getAccount() {
        log.info("获取客户信息服务, 服务正常启动");
        Map<String,Object> account = new HashMap<>();
        account.put("id","1");
        account.put("name","诗颖");
        log.info("id=="+account.get("id")+",name=="+account.get("name"));
        return account;
        //throw new RuntimeException("error");
    }
}
